package com.yoda.youdianda.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yoda.youdianda.domain.SysRole;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author shawn
 * @date 2022年 11月 13日 8:57
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    @Select("select menu_id from sys_role_menu where role_id = #{id}")
    List<String> getMenus(String id);

}
